Code-Based Interoperability and Dynamic Query Construction

نویسندگان

  • Peter Rolf Rosenthal
  • Peter Rosenthal
چکیده

class IntAbstraction { IntExpression plus(IntAbstraction rightSide ){ return new IntExpression( this ," + ", rightSide); } IntExpression multiply( IntAbstraction rightSide){ return new IntExpression( this , " * " , rightSide ); } abstract String generateCode(); }String generateCode(); } class IntExpression extends IntAbstraction { 1Furthermore, adequate method design can help ensuring the correct sequence of elements. For example, brackets have to be opened and then closed. There must be as many opening brackets as closing brackets. Instead of offering two clumsy methods called setLeftBracket() and setRightBracket() it is of advantage to use the setBrackets() method, which sets pairs of brackets at the same time. Setting them separately invites errors due to unmatched brackets. In contrast, the method setBrackets() guarantees that brackets are set in pairs or not at all. Additionally, a robust implementation of setBrackets() eliminates the empty brackets error.

برای دانلود رایگان متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

منابع مشابه

Automatic Building Information Model Query Generation

Energy efficient building design and construction calls for extensive collaboration between different subfields of the Architecture, Engineering and Construction (AEC) community. Performing building design and construction engineering raises challenges on data integration and software interoperability. Using Building Information Modeling (BIM) data hub to host and integrate building models is a...

متن کامل

Augmenting SQL with Dynamic Restructuring to Support Interoperability in a Relational Federation

In this work, we consider augmenting SQL with constructs allowing dynamic restructuring. Dynamic restructuring occurs naturally in a framework including second-order capabilities for integrating metadata and data within single queries. The context and motivating example for this extension is a federation of relational databases, containing semantically similar information in schematically dispa...

متن کامل

Modelsaz: An Object-Oriented Computer-Aided Modeling Environment

Modeling and simulation of processing plants are widely used in industry. Construction of a mathematical model for a plant is a time-consuming and error-prone task. In light of extensive advancements in computer science (both hardware and software), computers are becoming a necessary instrument in industrial activities. Many software tools for modeling, simulation and optimization of proces...

متن کامل

Dynamic Configurability of a Semantic Matchmaker for Ontology-based Resource Discovery in Open Distributed Systems

An important requirement for dynamic collaboration and semantic interoperability in open distributed systems is to minimize the effort needed for answering resource discovery queries by simultaneously guaranteeing the accuracy of the answers. In this paper, we propose query policies for dynamically configuring the matchmaker of a given node by taking into account the current workload of the pee...

متن کامل

بررسی پایداری لرزه‌ای سد‌های باطله مطالعه موردی سد سرچشمه

Tailings dams, due to methods and materials used in their construction are vulnerable structures to earthquake. In many cases storage of water over tailings is required to prevent aerial pollution or reduction in water consumption by the means of a recycling system, therefore failure of these kinds of dams not only induce affects similar to conventional water dams, but also may lead to irrevers...

متن کامل

ذخیره در منابع من


  با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید

عنوان ژورنال:

دوره   شماره 

صفحات  -

تاریخ انتشار 2004